package com.youdianda.mapper;


import com.youdianda.dto.YddAdvposDTO;
import com.youdianda.dto.YddSelectDTO;
import com.youdianda.entity.YddAdvpos;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sdy
 * @since 2023-05-15
 */
@Mapper
public interface YddAdvposMapper extends BaseMapper<YddAdvpos> {

//    @Select("SELECT a.id,a.advposname,a.advposdesc,count(b.advimgpos) as advposnum,a.advpossize,a.default_data FROM ydd_advpos a LEFT JOIN ydd_advimg b ON a.id=b.advimgpos GROUP BY a.id")
//    Page<YddAdvpos> pageQuery(YddAdvposDTO dto);

//
//    @Insert("insert  into ydd_advpos (id,advposname,advposdesc,advpossize) values (#{id},#{advposname},#{advposdesc},#{advpossize})" )
//    public int add(YddSelectDTO dto);

}
